#{if entity.groups.name == 'Utilisateur'}
#{extends 'main.html' /}
#{set title:'Votre Profile' /}
<br />
<h3 class="topsentence">Profil de ${entity.username}</h3>

<article>
    <div class="title_article_unclickable">
        Informations du compte

    </div>
    <div class="content_article">

        <center><img id="avatar" src="${entity.avatar}" alt="noimage"/></center>
        <table class="infos_tab">
            <tr>
                <td>Nom d'utilisateur :</td>
                <td>${entity.username}</td>
            </tr>
            <tr>
                <td>Role : </td>
                <td>${entity.groups.name}</td>
            </tr>
        </table>
</article>

<article>
    <div class="title_article_unclickable">
        Informations Personnelles
        <a href="#"><img class="img_edit" alt="Modifier ces informations" title="Modifier ces informations"src="@{'/public/images/admin/icn_edit.png'}" /></a> 
    </div>
    <div class="content_article">

        <table class="infos_tab">
            <tr>
                <td>Nom :</td>
                <td>${entity.lastname}</td>
            </tr>
            <tr>
                <td>Prénom :</td>
                <td>${entity.firstname}</td>
            </tr>
            <tr>
                <td>Date de naissance :</td>
                <td>${entity.birthday.format('dd/MM/yyyy')}</td>
            </tr>
            <tr>
                <td>Adresse Email :</td>
                <td>${entity.email}</td>
            </tr>
            <tr>
                <td>Adresse :</td>
                <td>${entity.adress}</td>
            </tr>
            <tr>
                <td>Téléphone:</td>
                <td>${entity.phonenumber}</td>
            </tr>
        </table>
        <footer>
            <div class="submit_link">
                <input type="submit" name="submit" value="Publier !" class="alt_btn"/>
            </div>
        </footer>
</article>



</article>


#{/if}
#{else}
#{extends 'admin.html' /}
#{set title:'Votre Profile' /}
<article class="module width_3_quarter" style="width:75%;">
    <header><h3 class="tabs_involved">${entity.firstname} ${entity.lastname}</h3>

        <div class="clear"></div>
    </header>
    <div class="tab_container">
        <div id="tab1" class="tab_content">
            <table class="tablesorter" cellspacing="0">
                <tbody>
                    <tr>
                        <td style="font-size:16px;"><center><img id="avatar" src="${entity.avatar}" alt="noimage"/></center></td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">Nom : </td>
                    <td style="font-size:16px;">${entity.lastname}</td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">Prénom : </td>
                    <td style="font-size:16px;">${entity.firstname}</td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">Adresses : </td>
                    <td style="font-size:16px;">${entity.adress}</td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">N° de Téléphone : </td>
                    <td style="font-size:16px;">${entity.phonenumber}</td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">Nom d'utilisateur : </td>
                    <td style="font-size:16px;">${entity.username}</td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">Courier Electronique : </td>
                    <td style="font-size:16px;">${entity.email}</td>
                </tr>
                <tr>
                    <td style="font-size:14px;font-weight:bold;text-align:center;">Date de Naissance : </td>
                    <td style="font-size:16px;">${entity.birthday.format()}</td>
                </tr>
                </tbody>
            </table>
            <footer>
                <div class="submit_link">
                    <input type="submit" name="submit" value="Modifier ces informations !" class="alt_btn"/>
                </div>
            </footer>
        </div>
    </div>
</article>
#{/else}

